package com.yikome.product.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yikome.product.request.SupplierRequest;
import com.yikome.product.service.SupplierService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@RestController
@RequestMapping("/supplier")
public class SupplierController {
	
	@Autowired
	private SupplierService supplierService ; 
	
	@GetMapping("/combobox")
	public List<Map<String , Object>> findProducts(SupplierRequest supplierRequest){
		
		return supplierService.findProduct(supplierRequest);
		
	}

}
